package com.gzhryc.shared_device.iot.core;

import com.gzhryc.shared_device.iot.core.enums.EIOTType;

import java.util.concurrent.TimeUnit;

public interface IOTClient {

	public EIOTType getIOTType();

	public IOTNodeEntity getIOTNote();
	
	public void run();
	
	public void close();
	
	/**
	 * 只发送命令
	 * @param msg
	 * @return
	 */
	public boolean send(IOTMessage msg);
	
	/**
	 * 同步接收响应
	 * @param msg
	 * @return
	 */
	public IOTSynResponse synSend(IOTMessage msg,Long times,TimeUnit unit);
}
